﻿#ifndef CHANGEPASSWORDWIDGET_H
#define CHANGEPASSWORDWIDGET_H

#include <QDialog>
#include "tools.h"
#include "usernetworkaccessmanager.h"

namespace Ui {
class ChangePasswordWidget;
}

class ChangePasswordWidget : public QDialog
{
    Q_OBJECT

public:
    explicit ChangePasswordWidget(QWidget *parent = nullptr);
    ~ChangePasswordWidget();

    void setPasswordType(Tools::PasswordType passwordType);

private slots:
    void on_pushButtonCancel_clicked();

    void on_pushButtonSubmit_clicked();

private:
    Ui::ChangePasswordWidget *ui;

    Tools::PasswordType passwordType;

    UserNetworkAccessManager manager;
};

#endif // CHANGEPASSWORDWIDGET_H
